package com.smooth.site.sx.pc.jifen.enums;

public enum GoodType {
	shiwu(1, "实物商品"),
	xuni(2, "虚拟商品"),
	;

	public Integer value;
	public String name;

	GoodType(int value, String name) {
		this.value = value;
		this.name = name;
	}

	public static GoodType getStatus(Integer value) {
		if (value != null) {
			GoodType[] otypes = GoodType.values();
			for (GoodType memberType : otypes) {
				if (value.equals(memberType.value)) {
					return memberType;
				}
			}
		}
		return null;
	}
}
